//
//  NSDateFormatter+JPF.h
//  JPFCore
//
//  Created by JPFei on 2019/3/5.
//  Copyright © 2019 nmo. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSDateFormatter (JPF)

+ (id)dateFormatter;
+ (id)dateFormatterWithFormat:(NSString *)dateFormat;

+ (id)defaultDateFormatter;/*yyyy-MM-dd HH:mm:ss*/
+(NSString *)formatterString:(NSString *)sourceStr
                   oldFormat:(NSString *)oldFormat
                   newFormat:(NSString *)newFormat;
+(NSDate *)stringFormatterDate:(NSString *)sourceStr
                        format:(NSString *)format;

@end

NS_ASSUME_NONNULL_END
